accellabel: Initialize allocation variable
authorBenjamin Otte <otte@redhat.com>
Sat, 31 Dec 2016 13:13:32 +0000 (14:13 +0100)
committerBenjamin Otte <otte@redhat.com>
Sat, 31 Dec 2016 13:37:20 +0000 (14:37 +0100)
I have no idea why gcc didn't catch this.

gtk/gtkaccellabel.c

index 6dde7452c17d79c74c4d4b7bd9b1aabd9d09a60f..b1a95b86483106f7d773d56b3363d3d8ffce67bc 100644 (file)
@@ -470,6 +470,7 @@ gtk_accel_label_snapshot (GtkWidget   *widget,
   GTK_WIDGET_CLASS (gtk_accel_label_parent_class)->snapshot (widget, snapshot);
 
   ac_width = gtk_accel_label_get_accel_width (accel_label);
+  gtk_widget_get_allocation (widget, &allocation);
   gtk_widget_get_preferred_size (widget, NULL, &requisition);
 
   if (allocation.width >= requisition.width + ac_width)